package org.dce.screencapturer.actions.objects;

import java.awt.event.ActionEvent;

import org.dce.screencapturer.objects.DrawingObject;
import org.dce.screencapturer.util.IconFactory;

@SuppressWarnings("serial")
public class DeleteAction extends ObjectAction {
	
	public DeleteAction(){
		super("categories.selection","action.delete",IconFactory.getIcon("/images/edit-delete.png"));
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		getDrawing().removeSelection();
	}

	@Override
	protected boolean acceptObject(DrawingObject anObject) {
		return true;
	}

}
